import ajax from './ajax'

var serverUrl = "http://api.xman.com:9090"

// var serverUrl = "http://fm.local.host/home/"
var serverUrl = "https://investPost.com/home/"

export const reqUuid = () => ajax(serverUrl+'abb/qu')
export const reqNewsyuan = param => ajax(serverUrl+'chese/mynews',param)
export const reqNews = param => ajax(serverUrl+'abb/getInfo',param)
// 获取单篇文章
export const reqContent = param => ajax(serverUrl+'abb/getContent',param)
export const reqAllyuan = param => ajax(serverUrl+'chese/index',param)
export const reqSetlang = param => ajax(serverUrl+'chese/setLang',param)
export const reqLangsort = param => ajax(serverUrl+'chese/get_user_lang',param)
export const reqSubmitLangsort = param => ajax(serverUrl+'chese/orderLang',param)
export const reqUpdatebis = param => ajax(serverUrl+'chese/update_vis',param)
export const reqSortorder = param => ajax(serverUrl+'chese/order_news',param)
export const reqLogin = param => ajax(serverUrl+'Login/index',param)
export const reqUserinfo = param => ajax(serverUrl+'Login/user_info',param)
export const reqSmNavbar = param => ajax(serverUrl+'setting/updateTool',param)
export const reqRegister = param => ajax(serverUrl+'Register/bytel',param)
export const reqVerify = param => ajax(serverUrl+'Code/verify',param)
export const reqcommitText = param => ajax(serverUrl+'User/addNews',param, 'post')
export const reqUploadFileUrl = serverUrl+'User/uploadFile'
export const reqTopicstype = param => ajax(serverUrl+'Topics/Categories',param)
export const reqTopicstypeSort = param => ajax(serverUrl+'Topics/order_categoriesAction',param)
export const reqvideourl = param => ajax(serverUrl+'user/title',param)
